<?php
namespace app\admin\controller;
use \think\Controller;
use \think\Db;
use \think\Loader;
class Auth extends Controller
{
    public function index()
    {
        $userData = Db::table('admin t1')
        ->join('auth_admin_role t2','t1.aid = t2.aid')
        ->join('auth_role t3','t2.roid = t3.roid')
        ->field('t1.*,t3.rname')
        ->paginate(5);
        return $this->fetch('',['userData'=>$userData]);
    }

}


?>